package com.milo.coding.atomic.atomic;

import java.util.concurrent.atomic.AtomicReferenceArray;

public class AtomicReferenceArrayRunner {

    static Test[] ovalue = new Test[]{new Test(1),new Test(2)};
    static AtomicReferenceArray<Test> objarray = new AtomicReferenceArray(ovalue);

    public static void main(String[] args) {
        System.out.println(objarray.get(0).getSequence());

        objarray.set(0,new Test(3));

        System.out.println(objarray.get(0).getSequence());

    }

}
